package com.cmj.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 菜单权限表(Menu)实体类
 *
 * @author makejava
 * @since 2022-08-22 15:46:18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sys_menu")
public class MenuTreeVo implements Serializable {
    private static final long serialVersionUID = 926979445700686788L;
    /**
     * 菜单ID
     */
    private Long id;
    /**
     * 菜单名称
     */
    private String menuName;
    /**
     * 父菜单ID
     */
    private Long parentId;

    @TableField(exist = false)
    private List<MenuTreeVo> children;

}

